<div class="page-content newCate-content">
   

    <div class="box-tip light">分类名称</div>
     <div class="list-li">
          <div class="li"   v-if="editData && editData.id">
             
               <input  name="tag_name" @blur="saveTagByInput" class="form-control" id="tag_name" style="width: 100%" :value="editData.name">
               
           </div> 



          <div class="li" v-else>
             <select name="tag_name" class="form-control" id="tag_name" style="width: 100%">   
                    <option  value="">请输入分类名称</option>
                    <option v-for="tag in tags"  :value="tag.id">{{tag.name}}</option>
               </select>
           </div> 

          

            
     </div>
     <div>
     <div class="box-tip light">排序</div>
         <div class="list-li">

          <div class="li"   >
                 
                   <input type="number" placeholder="数字越小越前"  name="order_by" @blur="saveTagByInput" class="form-control" id="order_by" style="width: 100%" :value="editData.order_by">
                   
               </div> 
    </div>

      <div v-if="id>0">
          <div class="box-tip light">商品列表</div>
           <div class="list-li">
                <router-link class="li color_0"  :to="{ name: 'chooseGoods', params: { shop_id: shop_id ,  id:id}}"  class="new-cate-item color_0" >+添加商品</router-link>
           </div>

          <div class="list-li goods-list">
                <div class="li"  v-for="good,index in goods"  @click="showAct(good.id,index)">
                  <div class="li-input-text">
                      <img :src="good.default_img+'?imageView2/1/w/160/h/160'">
                  </div>
                  <div class="li-input">{{good.goods_name}}</div>
                  <div class="clear"></div>
               </div> 
          </div>
      </div>
  
        <div style="padding: 20px 10px;"  v-if="id>0">
             <div class="btn btn3 w100 mgt10" @click="delTag" >删除此分类</div> 
        </div>  
</div>